﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;

namespace SharpWebSocket
{
    internal class Message
    {
        public Message( Socket socket, int bufferLength = WebSocketRuntime.RECEIVE_DATA_SIZE )
        {
            Socket = socket;
            Buffer = new byte[bufferLength];
            SocketError = System.Net.Sockets.SocketError.Success;
        }

        public Socket Socket
        {
            get;
            set;
        }

        public byte[] Buffer
        {
            get;
            set;
        }

        public SocketError SocketError
        {
            get;
            set;
        }
    }
}
